#include "CP_Application.h"
#include "CP_MainWindow.h"

int main(int argc, char *argv[])
{
    CP_Application app;
    cocos2d::EGLView* glView = cocos2d::EGLView::getInstance();
    glView->setViewName("CocosFactory");
    glView->setFrameSize(320, 480);
	
	CP_MainWindow wnd;
	wnd.addCocosWidget((QWidget*)glView->GetWidget());
	wnd.show();

	return cocos2d::Application::getInstance()->run();
}
